package subumbo.demo.view.share {
	import flash.events.MouseEvent;
	
	import org.robotlegs.mvcs.Mediator;
	
	import subumbo.demo.controller.signal.ShareSignal;

	public class ShareMediator extends Mediator {
		
		[Inject] public var _view:Share;
		[Inject] public var shareSignal:ShareSignal;
		
		public override function onRegister():void {
			_view.facebookBtn.addEventListener(MouseEvent.MOUSE_DOWN, onFacebook, false, 0, true);
		}
		
		private function onFacebook(e:MouseEvent):void {
			shareSignal.dispatch();
		}		
	}
}